package com.j283_5.wisdom_park.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.j283_5.wisdom_park.common.result.ResultData;
import com.j283_5.wisdom_park.pojo.CustomerDevelopment;
import com.j283_5.wisdom_park.vo.contract_management.CustomerNeedsVo;
import com.j283_5.wisdom_park.vo.contract_management.CustomerVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 客户发展表 服务类
 * </p>
 *
 * @author laoda
 * @since 2022-04-28
 */
public interface CustomerDevelopmentService  {
    /**
     * 多条件查询客户信息
     * @param customerVo
     * @return
     */
    Map<String,Object> findCustomer(
            @Param("customerVo") CustomerVo customerVo,
            @Param("start")
                    Integer page,
            @Param("limit")
                    Integer limit
    );

    /**
     * 根据客户id查询客户基本信息
     * @param cus_id
     * @return
     */
    Map<String,Object> findCustomerById(
            @Param("cus_id") Integer cus_id
    );

    /**
     * 更新
     * @param customerNeedsVo
     * @param customerVo
     * @return
     */
    ResultData UpdateCustomer(
            @Param("customerNeedsVo") CustomerNeedsVo customerNeedsVo,
            @Param("customerVo") CustomerVo customerVo
    );

    /**
     * 删除客户
     * @return
     */
    ResultData DeleteCustomer(
            List<Integer> listCustomer
    );

    /**
     * 根据客户id查询跟进情况
     * @return
     */
    ResultData Follow_situation(
            @Param("cus_id") Integer cus_id
    );

    /**
     * 新增客户
     * @param customerNeedsVo
     * @param customerVo
     * @return
     */
    ResultData InsertCustomer(
            @Param("customerNeedsVo") CustomerNeedsVo customerNeedsVo,
            @Param("customerVo") CustomerVo customerVo
    );


}
